package day1206zy.day1206zy123;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class demo1 {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
        Class<?> clazz = Class.forName("day1206zy123.Person");
        Constructor<?> c = clazz.getDeclaredConstructor();
//        暴力破解
        c.setAccessible(true);
        c.newInstance();
    }
}
